/**
 * (C)2013 Exlu Corporation. All rights reserved.
 * 文件名 : cn.exlu.wea.tpk.email.LoginAuthentication.java
 * 注意事項   :
 */
package cn.exlu.coco.core.server.email;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * 登陆认证信息类
 * @author Mark 
 * @version 1.0.1
 * 2013-1-29
 * LoginAuthentication.java
 */
public class LoginAuthentication extends Authenticator{
    private String emailName;
    private String password;
    
    public LoginAuthentication(String emailName,String password){
        this.emailName=emailName;
        this.password=password;
    }

    /* (non-Javadoc)
     * @see javax.mail.Authenticator#getPasswordAuthentication()
     */
    @Override
    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(emailName,password);
        
    }

}
